import { Suspense } from "react";
import { useRoutes } from "react-router-dom";
import routes from "./router";

function App() {
  const elements = useRoutes(routes);
  return <Suspense fallback={<h1>loading...</h1>}>{elements}</Suspense>;
}

export default App;
